package cn.bluemobi.platform.mapper;

import java.util.List;
import java.util.Map;

import cn.bluemobi.platform.entity.member.Member;
import cn.bluemobi.platform.entity.order.Address;
import cn.bluemobi.platform.entity.order.Order;
import cn.bluemobi.platform.entity.order.OrderItem;

public interface OrderMapper {

	List<Order> findOrders(Map<String, Object> map);

	Order findOrderDetail(String orderId);

	List<OrderItem> findOrderItem(String orderId);

	Address findAddress(String orderId);

	List<Map<String, Object>> findLogisticsList();

	int confirmDelivery(String logisticsCode, String logisticsNumber,
			String orderId);

	int deleteOrder(String orderId);

	Map<String, Object> findMemberById(String memberId);

	Member findMemberByInviteCode(String parentInviteCode);

	void updateWaitMemberRebatePoints(String waitRebatePoints, String memberId);

	void insertPointsDetail(String memberId, String points, String type,
			String source);

	void updateMemberIsBusiness(String isBusiness, String memberId);

	void updateWaitBusinessRebatePoints(String waitRebatePoints, String memberId);

	void insertBusinessRewardDetail(String memberId,
			Double waitBusinessRebatePoints, String string);

	void updateOrderIsAudit(String isAudit, String orderId);

}
